/*
 * @Author: 汪军 624473119@qq.com
 * @Date: 2023-11-30 10:02:17
 * @LastEditors: 汪军 624473119@qq.com
 * @LastEditTime: 2023-12-04 11:38:10
 * @FilePath: \ekee-web\src\api\enterprise-center.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request.js";

const contractApi = {
  // 获取合同列表
  guaranteeIndex: (data) => {
    return request({
      url: "/guarantee/index",
      method: "get",
      data,
    });
  },
  // 获取合同模版
  guaranteeTemplate: (data) => {
    return request({
      url: "/guarantee/template",
      method: "get",
      data,
    });
  },
  // 申请担保
  guaranteeApply: (data) => {
    return request({
      url: "/guarantee/apply",
      method: "post",
      data,
    });
  },
  // 获取担保审核签署信息
  guaranteeInfo: (data)=>{
    return request({
      url: "/guarantee/info",
      method: "get",
      data,
    });
  },
  // 签署
  guaranteeSign: (data)=>{
    return request({
      url: "/guarantee/sign",
      method: "post",
      data,
    });
  },
  // 获取查看签署担保合同地址
  guaranteeView: (data)=>{
    return request({
      url: "/guarantee/view",
      method: "get",
      data,
    });
  },
  // 法大大授权
  guaranteeAuth: (data)=>{
    return request({
      url: "/guarantee/auth",
      method: "post",
      data,
    });
  },
};

export default contractApi;
